<template>
    <div class="boundedwork">
        <div class="content">
            <div class="c-top">
                <div class="c-list">
                    <div class="c-left">
                        项目名称
                    </div>
                    <div class="c-right">
                        <!-- {{dataList.projectName}} -->
                        {{userInfo.departsir == 2?userInfo.pdeptname:dataList.projectName}}
                    </div>
                </div>
                <div class="c-list"
                     @click="showclass">
                    <div class="c-left">
                        申请单位
                        <i class="iconfont icon-required"></i>
                    </div>
                    <div class="c-right">
                        <div class="c-select">{{dataList.deptName}}</div>
                        <img src="../../../../static/images/5.png"
                             @click="showmsg">
                    </div>
                </div>
                <div class="c-list"
                     @click="showArea">
                    <div class="c-left">
                        高风险作业区域
                        <i class="iconfont icon-required"></i>
                    </div>
                    <div class="c-right">
                        <input type="text"
                               placeholder="请选择"
                               disabled
                               v-if="!dataList.areaName" />
                        <div class="c-select"
                             v-else>{{dataList.areaName}}</div>
                        <img src="../../../../static/images/5.png"
                             @click="showmsg">
                    </div>
                </div>
                <div class="c-list"
                     @click="workclassnewlist">
                    <div class="c-left">
                        作业班组
                        <i class="iconfont icon-required"></i>
                    </div>
                    <div class="c-right">
                        <input type="text"
                               placeholder="请选择"
                               disabled
                               v-if="!dataList.FireSquad" />
                        <div class="c-select"
                             v-else>{{dataList.FireSquad}}</div>
                        <img src="../../../../static/images/5.png">
                    </div>
                </div>
                <div class="c-list"
                     @click="worktrueList">
                    <div class="c-left">
                        作业班长
                        <i class="iconfont icon-required"></i>
                    </div>
                    <div class="c-right">
                        <input type="text"
                               placeholder="请选择"
                               disabled
                               v-if="!dataList.GroupPerson" />
                        <div class="c-select"
                             v-else>{{dataList.GroupPerson}}</div>
                        <img src="../../../../static/images/5.png"
                             @click="showmsg">
                    </div>
                </div>
                <div class="c-list"
                     @click="getsblistselect">
                    <div class="c-left">
                        作业监护人
                        <i class="iconfont icon-required"></i>
                    </div>
                    <div class="c-right">
                        <input type="text"
                               placeholder="请选择"
                               disabled
                               v-if="!dataList.PersonLiable" />
                        <div class="c-select"
                             v-else>{{dataList.PersonLiable}}</div>
                        <img src="../../../../static/images/5.png">
                    </div>
                </div>
                <div class="c-list"
                     style="padding:0 20px 0 0">
                    <div class="c-left">
                        作业开始日期
                        <i class="iconfont icon-required"></i>
                    </div>
                    <!-- <div class="c-right">
                        <datetime v-model="dataList.startDate"
                                  @on-change="changestart"
                                  format="YYYY-MM-DD"
                                  title='开始时间'>
                            <div class="showlisttime">
                                {{dataList.startDate}}
                            </div>
                        </datetime>
                    </div> -->
                    <div class="c-right">
                        <group>
                            <datetime v-model="dataList.startDate"
                                      @on-change="changestart"></datetime>
                        </group>
                    </div>
                </div>
                <div class="c-list"
                     style="padding:0 20px 0 0">
                    <div class="c-left">
                        作业结束日期
                        <i class="iconfont icon-required"></i>
                    </div>
                    <div class="c-right">
                        <!--<div class="c-select">请选择</div>
                     <img src="../../../../static/images/5.png"  @click="showmsg" >-->

                        <!-- <datetime :start-date="startDateOn"
                                  @on-change="changeend"
                                  v-model="dataList.endDate"
                                  format="YYYY-MM-DD"
                                  title='结束时间'>
                            <div class="showlisttime">
                                {{dataList.endDate}}
                            </div>
                        </datetime> -->
                        <div class="c-right">
                            <group>
                                <datetime v-model="dataList.endDate"
                                          @on-change="changeend"></datetime>
                            </group>
                        </div>
                    </div>
                </div>
            </div>

            <!--<div class="c-btn">
             <div class="c-submit">提交</div>

         </div>-->
            <div class="c-bottom">
                <div class="c-title">
                    监护人工作区域已配备设施和设备
                </div>

                <div class="selectcheck">
                    <div class="selecticn"
                         v-for="(item,index) in deviceList"
                         :key="index"
                         @click="selectdevice(index)">
                        <div class="iconnew"
                             :class="deviceCheck[index]?'checked':''"></div>
                        <div>
                            {{item.DeptName}}
                        </div>
                    </div>
                </div>
            </div>

            <div class="c-bottom">
                <div class="c-title">
                    作业监护人已完成工作
                </div>

                <div class="selectcheck">
                    <div class="selecticn"
                         v-for="(item,index) in personList"
                         :key="index"
                         @click="selectperson(index)">
                        <div class="iconnew"
                             :class="personcheck[index]?'checked':''"></div>
                        <div>
                            {{item.DeptName}}
                        </div>
                    </div>
                </div>
            </div>

            <div class="c-bottom">
                <div class="c-title">
                    应急管理
                </div>

                <div class="selectcheck">
                    <div class="selecticn"
                         v-for="(item,index) in manageList"
                         :key="index"
                         @click="selectmange(index)">
                        <div class="iconnew"
                             :class="manageCheck[index]?'checked':''"></div>
                        <div>
                            {{item.DeptName}}
                        </div>
                    </div>
                </div>
            </div>

            <div class="btnlist">
                <div class="listtop">
                    <div class="list-t0">
                        受限空间作业前保证做到
                    </div>
                    <div class="list-t1"
                         v-if="!detailflag"
                         @click="showdetail">
                        展开
                    </div>
                    <div class="list-t1"
                         v-if="detailflag"
                         @click="showdetail">
                        收缩
                    </div>
                </div>
                <div class="firstlist">
                    1.监护人和工人穿着合适的个人防护服
                </div>
                <div class="firstlist">
                    2.安排相应的消防和安全知识
                </div>
                <div class="firstlist">
                    3.受限空间内的所有连接均需隔离、拆除
                </div>
                <div v-if="detailflag">
                    <div class="firstlist">
                        4.受限空间内外的所有电气、液压连接全部锁定并贴上标签
                    </div>
                    <div class="firstlist">
                        5.受限空间内不存在放射性危险
                    </div>
                    <div class="firstlist">
                        6.受限空间内空气中的含氧量应为 19.5%～23%
                    </div>
                    <div class="firstlist">
                        7.作业时，操作人员所需的适宜新风量应为 30 m3/h～50m3/h
                    </div>
                    <div class="firstlist">
                        8.工人精神正常、身体健康
                    </div>
                    <div class="firstlist">
                        9.所有呼吸设备均能正常工作
                    </div>
                    <div class="firstlist">
                        10.提供救生索和安全带
                    </div>
                    <div class="firstlist">
                        11.电气设备满足要求
                    </div>
                    <div class="firstlist">
                        12.受限空间内的所有动火作业必须签发动火作业票，并进行作业危险性分析
                    </div>
                    <div class="firstlist">
                        13.现场要配备受过技能培训具有一定的抢救经验的人员。
                    </div>
                </div>
            </div>

            <div class="line"
                 v-if="ApproveInfo.length>0"></div>
            <div class="form-section"
                 v-if="ApproveInfo.length>0">
                <h3>审批信息</h3>
                <div v-for="(item,index) in ApproveInfo"
                     :key="index"
                     class="list-item">
                    <div class="form-item form-item-style2">
                        <div class="label-title">
                            <label>审批意见</label>
                        </div>
                        <div>
                            <p class="textarea">{{item.Remark}}</p>
                        </div>
                    </div>
                    <div class="form-item form-item-style1">
                        <div class="label-title">
                            <label>审批结论</label>
                        </div>
                        <div>
                            <p>{{item.ApproveResult}}</p>
                        </div>
                    </div>
                    <div class="form-item form-item-style1">
                        <div class="label-title">
                            <label>审批人</label>
                        </div>
                        <div>
                            <p>{{item.ApprovePersonName}}</p>
                        </div>
                    </div>
                </div>
            </div>

            <div class="c-btn">
                <div class="c-submit"
                     @click="submitlist">提交</div>

            </div>
        </div>
        <!--获取班组-->
        <div v-transfer-dom>
            <popup v-model="classValue"
                   width="100%">
                <!--<div class="position-horizontal-demo" v-for="(item,index) in classList" @click="selectClass(item)">
            <span class="vux-close">
                {{item.deptName}}
            </span>
          </div>-->

                <div class="newlist">
                    <lookcompany></lookcompany>
                </div>
            </popup>
        </div>

        <!--获取区域-->
        <div v-transfer-dom>
            <popup v-model="areaValue"
                   width="100%">
                <div class="position-horizontal-demo"
                     v-for="(item,index) in areaList"
                     :key="index"
                     @click="selectArea(item)">
                    <span class="vux-close">
                        {{item.name}}
                    </span>
                </div>
            </popup>
        </div>
        <!--获取班组-->
        <!--获取班组-->
        <div v-transfer-dom>
            <popup v-model="workclassValue"
                   width="100%">
                <!--<div class="position-horizontal-demo" v-for="(item,index) in classList" @click="selectClass(item)">
            <span class="vux-close">
                {{item.deptName}}
            </span>
          </div>-->

                <div class="newlist">
                    <lookcompanys></lookcompanys>
                </div>
            </popup>
        </div>

        <!--获取设备操作人员-->
        <div v-transfer-dom>
            <popup v-model="seteleValue"
                   width="100%">
                <div class="position-horizontal-demo"
                     v-for="(item,index) in workclassList"
                     :key="index"
                     @click="selectEle(item)">
                    <span class="vux-close">
                        {{item.name}}
                    </span>
                </div>
            </popup>
        </div>

        <div v-transfer-dom>
            <popup v-model="getsblistValue"
                   width="100%">
                <div class="position-horizontal-demo"
                     v-for="(item,index) in getsblistshow"
                     :key="index"
                     @click="selectgetsblistshow(item)">
                    <span class="vux-close">
                        {{item.realName}}
                    </span>
                </div>
            </popup>
        </div>
        <myMenu></myMenu>

    </div>
</template>

<script>
import { Popup, TransferDom } from 'vux'
import myMenu from '@/commonComponents/menu'
import lookcompany from '../weightwork/lookcompany'
import lookcompanys from './lookcompany'
import mixin from '../commonmixin.js'
const getDate = () => {
    var date = new Date()
    var seperator1 = '-'
    var year = date.getFullYear()
    var month = date.getMonth() + 1
    var strDate = date.getDate()
    if (month >= 1 && month <= 9) {
        month = '0' + month
    }
    if (strDate >= 0 && strDate <= 9) {
        strDate = '0' + strDate
    }
    var currentdate = year + seperator1 + month + seperator1 + strDate
    return currentdate
}

const endDate = () => {
    var date = new Date()
    var seperator1 = '-'
    var year = date.getFullYear()
    var month = date.getMonth() + 1
    var strDate = date.getDate()
    if (month >= 1 && month <= 9) {
        month = '0' + month
    }
    if (strDate >= 0 && strDate <= 9) {
        strDate = '0' + strDate
    }
    var currentdate = year + seperator1 + month + seperator1 + strDate
    return currentdate
}
export default {
    name: 'App',
    directives: {
        TransferDom
    },
    mixins: [mixin],
    data () {
        return {
            userInfo: {},
            options1: ['A单位'],
            options2: ['安全类'],
            active: 1,
            showflag: false,
            dataList: {
                id: '', //	String		受限空间作业申请ID（修改时存在，新增时为空）
                projectName: '', //	String		项目名称
                projectId: '', //	String		项目ID
                deptName: '', //	String		申请单位名称
                deptId: '', //	String		申请单位ID
                areaId: '',
                areaName: '', //	String		高风险作业区域id
                startDate: getDate(), //	String	否	申请拆除日期
                endDate: endDate(), //	String	否	计划完工时间
                FireSquadid: '', //	String		作业班组id
                FireSquad: '', //	String		作业班组
                GroupPersonid: '', //	String		作业班长id
                GroupPerson: '', //	String		作业班长
                PersonLiableid: '', //	String		作业监护人id
                PersonLiable: '', //	String		作业监护人
                Equipment: '', //	String		监护人工作区域已配备设施和设备
                CompletedWork: '', //	String		作业监护人已完成工作
                ContingencyMange: '' //	String		应急管理
            },
            deviceList: [],
            deviceCheck: [],
            startDateOn: getDate(),

            personList: [],
            personcheck: [],
            seteleValue: false,

            manageList: [],
            manageCheck: [],

            workclassList: [],
            workclassValue: false,

            detailflag: false,

            getsblistshow: [],
            getsblistValue: false,

            yself: '',
            addflag: true,
            ApproveInfo: []

        }
    },
    components: {
        lookcompany, Popup, lookcompanys, myMenu
    },
    computed: {
        changedatas () {
            return this.$store.state.workrists
        }
    },
    watch: {
        changedatas () {
            this.workclassValue = false
            // this
            this.dataList.FireSquadid = this.$store.state.companyworklist.FireSquadid
            this.dataList.FireSquad = this.$store.state.companyworklist.FireSquad
            this.dataList.GroupPerson = this.$store.state.companyworklist.GroupPerson
            this.getnewclassleader(this.dataList.FireSquadid)
        }
    },
    created () {
        this.userInfo = JSON.parse(localStorage.userInfo)
        this.userId = this.userInfo.userid
        this.tokenId = this.userInfo.tokenId
        this.projectId = this.userInfo.deptid
        this.dataList = Object.assign({}, this.dataList, {
            projectName: this.userInfo.deptname,
            projectId: this.userInfo.deptid,
            personName: this.userInfo.username,
            personId: this.userInfo.userid,
            deptName: this.userInfo.deptname,
            deptId: this.userInfo.deptid
        })
        this.getArea()

        // this.getperson();
        this.getmanage()
        this.getsblist()
        this.$vux.loading.show({
            text: '加载中...'
        })
        let x = new Promise((resolve, reject) => {
            this.getdevices(resolve)
        }
        )
        let y = new Promise((resolve, reject) => {
            this.getmanage(resolve)
        }
        )
        let z = new Promise((resolve, reject) => {
            this.getperson(resolve)
        }
        )

        Promise.all([x, y, z]).then(
            (result) => {
                if (this.$route.query.id) {
                    this.getdetail()
                } else {
                    this.$vux.loading.hide()
                }
            }
        )
        // this.getnewclass();
    },
    methods: {

        selectArea (item) {
            //  this.areaname = item.name;
            this.dataList.areaName = item.name
            this.dataList.areaId = item.id
            this.areaValue = false
        },
        getdevices (resolve) {
            let param = {
                'allowPaging': true,
                'business': 'GetConfinedEquipment',
                'data': {
                },
                'pageIndex': 0,
                'pageSize': 20,
                'tokenId': this.tokenId,
                'userId': this.userId
            }
            this.$axiosAjax.getConfigJson(
                param
            ).then((res) => {
                this.deviceList = res.data.data

                if (!this.$route.query.id) {
                    let typeNamelist = []
                    this.deviceList.forEach(
                        (item, index) => {
                            this.deviceCheck[index] = !this.deviceCheck[index]
                            typeNamelist.push(this.deviceList[index].DeptName)
                        }
                    )
                    this.dataList.Equipment = typeNamelist.join(',')
                    this.$forceUpdate()
                }

                resolve(res.data.data)
            }
            )
        },
        getperson (resolve) {
            let param = {
                'allowPaging': true,
                'business': 'GetConfinedCompletedWork',
                'data': {
                },
                'pageIndex': 0,
                'pageSize': 20,
                'tokenId': this.tokenId,
                'userId': this.userId
            }
            this.$axiosAjax.getConfigJson(
                param
            ).then(
                (res) => {
                    this.personList = res.data.data
                    if (!this.$route.query.id) {
                        let typeNamelist = []
                        this.personList.forEach(
                            (item, index) => {
                                this.personcheck[index] = true
                                typeNamelist.push(this.personList[index].DeptName)
                            }
                        )
                        this.dataList.CompletedWork = typeNamelist.join(',')
                        this.$forceUpdate()
                    }
                    resolve(res.data.data)
                }
            )
        },
        getmanage (resolve) {
            let param = {
                'allowPaging': true,
                'business': 'GetConfinedContingencyMange',
                'data': {
                },
                'pageIndex': 0,
                'pageSize': 20,
                'tokenId': this.tokenId,
                'userId': this.userId
            }
            this.$axiosAjax.getConfigJson(
                param
            ).then((res) => {
                this.manageList = res.data.data
                if (!this.$route.query.id) {
                    let typeNamelist = []
                    this.manageList.forEach(
                        (item, index) => {
                            this.manageCheck[index] = true
                            typeNamelist.push(this.manageList[index].DeptName)
                        }
                    )
                    this.dataList.ContingencyMange = typeNamelist.join(',')
                    this.$forceUpdate()
                }
                resolve(res.data.data)
            }
            )
        },
        getnewclassleader (id) {
            let param = {
                'allowPaging': true,
                'business': 'getPersonPage',
                'data': {
                    'deptId': id,
                    'departId': id
                },
                'pageIndex': 0,
                'pageSize': 10000,
                'tokenId': this.tokenId,
                'userId': this.userId
            }
            this.$axiosAjax.getConfigJson(
                param
            ).then(
                (res) => {
                    this.workclassList = res.data.data
                }
            )
        },
        getsblist () {
            let param = {
                'allowPaging': true,
                'business': 'GetDivderPeopleList',
                'data': {
                    'departId': this.userInfo.deptid
                },
                'pageIndex': 0,
                'pageSize': 20,
                'tokenId': this.tokenId,
                'userId': this.userId
            }
            this.$axiosAjax.getConfigJson(
                param
            ).then(
                (res) => {
                    this.getsblistshow = res.data.data
                }
            )
        },
        selectdevice (index) {
            console.log(index)
            this.deviceCheck[index] = !this.deviceCheck[index]
            let typeNamelist = []
            this.deviceCheck.forEach(
                (item, index1) => {
                    if (item) {
                        typeNamelist.push(this.deviceList[index1].DeptName)
                    }
                }
            )
            this.dataList.Equipment = typeNamelist.join(',')
            this.$forceUpdate()
        },
        selectperson (index) {
            console.log(index)
            this.personcheck[index] = !this.personcheck[index]
            let typeNamelist = []
            this.personcheck.forEach(
                (item, index1) => {
                    if (item) {
                        typeNamelist.push(this.personList[index1].DeptName)
                    }
                }
            )
            this.dataList.CompletedWork = typeNamelist.join(',')
            this.$forceUpdate()
        },
        selectEle (item) {
            this.dataList.GroupPerson = item.name
            this.dataList.GroupPersonid = item.id
            this.seteleValue = false
        },
        selectmange (index) {
            console.log(index)
            this.manageCheck[index] = !this.manageCheck[index]
            let typeNamelist = []
            this.manageCheck.forEach(
                (item, index1) => {
                    if (item) {
                        typeNamelist.push(this.manageList[index1].DeptName)
                    }
                }
            )
            this.dataList.ContingencyMange = typeNamelist.join(',')
            this.$forceUpdate()
        },
        changestart (val) {
            this.dataList.startDate = val
            let x = new Date(val).getTime() - new Date(this.showsearch.endDate).getTime()
            if (x > 0) {
                this.showsearch.endDate = val
            }
            this.startDateOn = val

            this.$forceUpdate()
        },
        changeend (val) {
            this.dataList.endDate = val
            this.$forceUpdate()
        },
        showdetail () {
            this.detailflag = !this.detailflag
        },
        workclassnewlist () {
            this.workclassValue = true
        },
        worktrueList () {
            if (this.workclassList.length == 0) {
                return false
            }
            this.seteleValue = true
        },
        getsblistselect () {
            this.getsblistValue = true
        },
        selectgetsblistshow (item) {
            this.dataList.PersonLiable = item.realName//	String		作业监护人id
            this.dataList.PersonLiableid = item.memberId//	String		作业监护人id
            this.getsblistValue = false
        },
        submitlist () {
            if (!this.dataList.deptName) {
                this.$vux.toast.text('请选择申请单位')
                return false
            }
            if (!this.dataList.areaName) {
                this.$vux.toast.text('请选择作业区域')
                return false
            }
            if (!this.dataList.FireSquad) {
                this.$vux.toast.text('请输入作业班组')
                return false
            }
            if (!this.dataList.GroupPerson) {
                this.$vux.toast.text('请选择作业班组长')
                return false
            }
            if (!this.dataList.PersonLiable) {
                this.$vux.toast.text('请选择监护人')
                return false
            }
            // if(!this.dataList.defenceText){
            //    this.$vux.toast.text('请选择防范措施');
            //    return false;
            // }
            let sendmethod = 'send'
            // if(this.$route.query.id){
            //     sendmethod = "modify";
            // }
            this.$vux.loading.show({
                text: '正在提交中...'
            })

            if (!this.addflag) {
                return false
            }
            this.addflag = false
            let param = {
                'allowPaging': true,
                'business': 'SetConfinedJob',
                'method': sendmethod,
                'data': this.dataList,

                'pageIndex': 0,
                'pageSize': 20,
                'tokenId': this.tokenId,
                'userId': this.userId
            }
            this.$axiosAjax.getConfigJson(
                param
            ).then(
                (res) => {
                    if (res.data.code == 0) {
                        // this.$router.push('/workrisk')
                        this.$router.go(-1)
                    } else {
                        this.addflag = true
                    }
                }
            ).catch(
                () => {
                    this.addflag = true
                }
            )
        },
        getdetail () {
            let param = {
                'allowPaging': true,
                'business': 'GetConfinedJob',
                'data': {
                    'id': this.$route.query.id
                },
                'pageIndex': 0,
                'pageSize': 20,
                'tokenId': this.tokenId,
                'userId': this.userId
            }
            this.$axiosAjax.getConfigJson(
                param
            ).then(
                (res) => {
                    let newarr = res.data.data
                    this.dataList = {
                        id: newarr.Id, //	String		受限空间作业申请ID（修改时存在，新增时为空）
                        projectName: newarr.ProjectName, //	String		项目名称
                        projectId: newarr.projectId, //	String		项目ID
                        deptName: newarr.DeptName, //	String		申请单位名称
                        deptId: newarr.DeptId, //	String		申请单位ID
                        AreaId: newarr.AreaId, //	String		高风险作业区域id
                        areaName: newarr.AreaName, //
                        startDate: newarr.StartDate.substring(0, 10), //	String	否	申请拆除日期
                        endDate: newarr.EndDate.substring(0, 10), //	String	否	计划完工时间
                        FireSquadid: newarr.FireSquadid, //	String		作业班组id
                        FireSquad: newarr.FireSquad, //	String		作业班组
                        GroupPersonid: newarr.GroupPersonid, //	String		作业班长id
                        GroupPerson: newarr.GroupPerson, //	String		作业班长
                        PersonLiableid: newarr.PersonLiableid, //	String		作业监护人id
                        PersonLiable: newarr.PersonLiable, //	String		作业监护人
                        Equipment: newarr.Equipment, //	String		监护人工作区域已配备设施和设备
                        CompletedWork: newarr.CompletedWork, //	String		作业监护人已完成工作
                        ContingencyMange: newarr.ContingencyMange //	String		应急管理
                    }

                    //   if(this.dataList.PersonId==this.userInfo.userid){
                    //    this.yself = false;
                    //  }
                    if (newarr.Equipment) {
                        this.deviceList.forEach(
                            (item, index) => {
                                let reg = new RegExp(item.DeptName)
                                if (reg.test(newarr.Equipment)) {
                                    this.deviceCheck[index] = true
                                }
                            }
                        )
                    }
                    if (newarr.CompletedWork) {
                        this.personList.forEach(
                            (item, index) => {
                                let reg = new RegExp(item.DeptName)
                                if (reg.test(newarr.CompletedWork)) {
                                    this.personcheck[index] = true
                                }
                            }
                        )
                    }
                    if (newarr.ContingencyMange) {
                        this.manageList.forEach(
                            (item, index) => {
                                let reg = new RegExp(item.DeptName)
                                if (reg.test(newarr.ContingencyMange)) {
                                    this.manageCheck[index] = true
                                }
                            }
                        )
                    }
                    this.ApproveInfo = res.data.data.ApproveInfo
                    this.$vux.loading.hide()
                    this.$forceUpdate()
                }
            )
        }
    }
}
</script>

<style scoped lang="less">
.form-section {
    margin: 0;
}
.boundedwork {
    background-color: #ebeef3;
    height: 100%;
}
.content {
    background-color: #ebeef3;
}
.c-top {
    background-color: #fff;
    padding-left: 20px;
}
.c-bottom {
    background-color: #fff;
    padding-left: 20px;
    margin-top: 12px;
}
.c-list {
    padding: 0 20px 0 0;
    height: 50px;
    line-height: 50px;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #efeff4;
    align-items: center;
}
.c-left {
    color: #333;
    font-size: 14px;
    position: relative;
}
.c-left > i {
    position: absolute;
    top: -5px;
    right: -18px;
}
.c-right {
    color: #999;
    font-size: 14px;
    display: flex;
    align-items: center;
}
.c-right input {
    background: #fff;
    text-align: right;
}
.c-select {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    width: 200px;
    margin-right: 6px;
    text-align: right;
    font-size: 14px;
    color: #999;
}
.c-btn {
    height: 113px;
    padding-top: 32px;
}
.c-submit {
    width: 200px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    font-size: 15px;
    color: #fff;
    border-radius: 20px;
    background-color: #2269ff;
    margin: 0 auto;
}
.c-title {
    height: 50px;
    line-height: 50px;
    color: #1f69fc;
}
.selectcheck {
    background-color: #fff;
    // padding-left:20px;
}
.selecticn {
    height: 54px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #efeff4;
}
.selecticn > div {
    color: #333;
    font-size: 14px;
}
.iconnew {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1px solid #2467ff;
    position: relative;
    margin-right: 10px;
}
.iconnew.checked {
    background-color: #2467ff;
}
.iconnew.checked::before {
    border-left: 1px solid #fff;
    border-bottom: 1px solid #fff;
    height: 1.067vw;
    width: 2.133vw;
    position: absolute;
    top: 3px;
    left: 3px;
    content: '';
    -webkit-transform: rotate(-56deg);
    transform: rotate(-51deg);
}
.btnlist {
    background-color: #fff;
    padding-top: 6px;
    padding-left: 25px;
    border-top: 1px solid #ebeef3;
    border-bottom: 1px solid #ebeef3;
    padding-bottom: 26px;
}
.listtop {
    height: 56px;
    line-height: 56px;
    display: flex;
    justify-content: space-between;
    padding-right: 20px;
}
.list-t0 {
    color: #333;
    font-size: 14px;
}
.list-t1 {
    color: #999;
    font-size: 14px;
}
.firstlist {
    // height:23px;
    line-height: 23px;
    color: #999;
    font-size: 14px;
    padding-right: 20px;
}
.c-btn {
    height: 113px;
    padding-top: 32px;
    background-color: #fff;
}
.c-submit {
    width: 200px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    font-size: 15px;
    color: #fff;
    border-radius: 20px;
    background-color: #2269ff;
    margin: 0 auto;
}
.position-horizontal-demo {
    height: 55px;
    line-height: 55px;
    padding-left: 20px;
    font-size: 16px;
    color: #666;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-right: 20px;
    background-color: #fff;
    border-bottom: 1px solid #ebeef3;
}
.showlisttime {
    height: 40px;
    line-height: 40px;
    width: 200px;
    text-align: right;
    font-size: 14px;
    color: #999;
}
.line {
    border-bottom: 10px solid #ebeef2;
}
</style>
<style>
.boundedwork .weui-cells,
.boundedwork .vux-no-group-title {
    margin-top: 0;
}
.boundedwork .weui-cell {
    padding-right: 0;
}
.boundedwork .weui-cell_access .weui-cell__ft::after {
    height: 10px;
    width: 10px;
    margin-top: -6px;
    border-radius: 2px;
    border-width: 2px 2px 0 0;
    border-color: #a2a2a2;
}
.boundedwork .vux-cell-value {
    font-size: 14px;
    color: #999;
}
.boundedwork .weui-cells:after,
.boundedwork .weui-cells:before {
    display: none;
}
</style>
